package com.hzw.saas.common.open.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/3/1 14:47
 */
@Data
@TableName("tb_saas_client")
@ApiModel(value = "saas第三方应用client信息")
public class SaasClientDto {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "网站名称")
    private String name;

    @ApiModelProperty(value = "网站主页")
    private String homeUri;

    @ApiModelProperty(value = "秘钥")
    private String clientSecret;

    @ApiModelProperty(value = "成功授权后的回调地址")
    private String redirectUri;

    @ApiModelProperty(value = "自动授权 默认false")
    private Boolean autoApprove = false;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;
}
